<Snippet><Contents1><script language="JavaScript">
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var monthNums = new Array("01","02","03","04","05","06","07","08","09","10","11","12");
var now = new Date();
// Display date in format Month DD, YYYY
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + now.getYear());
document.write("<br>");
// Display date in format MM-DD-YYYY
document.write(monthNums[now.getMonth()] + "-" + now.getDate() + "-" + now.getYear());
document.write("<br>");
// Display date in format DD.MM.YYYY
document.write(now.getDate() + "." + monthNums[now.getMonth()] + "." + now.getYear());
</script></Contents1>
<Snippet><Contents1><script language="JavaScript" type="text/javascript">
<!--
document.write("This web page is located @ " + document.location);
// -->
</script></Contents1>
<Contents2></Contents2>
<Title>Show Page Location</Title>
</Snippet>
<Snippet><Contents1><a href="javascript:self.close()">Close This Window</a></Contents1>
<Contents2></Contents2>
<Title>Close Window Link</Title>
</Snippet>
<Snippet><Contents1><script language="JavaScript">
<!-- This Script And Over 400 Others Found At --!>
<!-- Java City 2000 http://www.jc2k.com --!>
<!--
//The page they go to if they get it right.
var goodURL = "correct.html";
alert("To access the following document, you must pass a "
+ "members-only, authorization test.\n \n At the appropriate "
+ "time, enter in your username and password.");
var username = prompt("Enter in your username","");
var password = prompt("Enter in your password","");
if (username == null || password == null)
{
alert("Authenification failed.")
history.back();
}
else
{
var combo = username + password
var total = combo.toLowerCase()
//This next line is where you can add usernames and passwords.
if (total == "mynamemypass" || total == "name2pass2" || total == "josh1help1")
{
alert("You passed authenification. Come right in!");
location = goodURL;
}
else
{
alert("Authenification failed.");
history.back();
}
}
//-->
</script></Contents1>
<Contents2></Contents2>
<Title>Password Protection</Title>
</Snippet>
<Snippet><Contents1><script language="JavaScript">
document.write("Hello, ");
document.write(prompt("What is your Name?","Enter Name"));
document.write(". Welcome to My Website!");
</script></Contents1>
<Contents2></Contents2>
<Title>Prompt Sample</Title>
</Snippet>
<Snippet><Contents1><!-- Page body must have following OnLoad handler -->
<body onload="if (self != top) top.location = self.location"></Contents1>
<Contents2></Contents2>
<Title>Get Out Of Frames</Title>
</Snippet>
</Snippets>
<SubFolders></SubFolders>
<Title>JavaScript Instant Scripts</Title>
</Folder>
<Folder><Expanded>False</Expanded>
<Snippets><Snippet><Contents1>a:link {
color: Blue
}
a:visited {
color: Purple
}
a:active {
color: Red
}
a:hover {
color: Red
}</Contents1>